Skip to content

message-bridge: class/name notes, public wake signal, bridge helper (#13895) - #13917

Merged
dezren39 merged 1 commit into
mainfrom
bridge/13895-notes-clean
Nov 24, 2026
Merged

dezren39 merged 1 commit into
mainfrom
bridge/13895-notes-clean

Conversation

@dezren39

@dezren39 dezren39 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Implements #13895: class/name notes on the message bridge, the public content-free wake signal, and the bridge helper.

  • src/notes.js: registered class/name identities, SHA-256-hashed identity tokens, wildcard delivery (muse/*, */archer, */*), per-identity inbox + ack, owner-only registration via the existing access token.
  • Public signal: GET /<class>/<name> returns one bare UUID for every non-reserved two-segment path — registered paths change on delivery (counter), all paths rotate on a per-path 10–40 min deterministic decoy bucket, so a change never proves a note arrived and no path reveals registration. No path in this space 404s.
  • Store support in the existing Durable Object (note_identity / note_token / note_message) with a MemoryStore mirror for tests.
  • bridge.mjs helper (send / inbox / ack); the caller's token comes from the vault by name and is never printed.
  • README documents the addressing model and privacy properties.

Tests: node --test test/*.test.mjs — 72 pass, 0 fail (run on the laptop).

Note: this branch is a clean cherry-pick of the original bridge commit onto current main; the original branch (bridge/13895-note-signal) was based on a stray local model commit (opencode.jsonc + claimant changes) that is deliberately NOT included here.


Show it working
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Adds src/notes.js: registered class/name identities (muse/archer),
SHA-256-hashed identity tokens, wildcard delivery (muse/*, */archer,
*/*), per-identity inboxes with ack, and the public content-free wake
signal on every non-reserved two-segment path: a bare UUID derived
from the path, a per-path 10-40 minute decoy bucket, and a delivery
counter, so a change never proves a note arrived. Notes live in the
existing Durable Object (new note_identity / note_token /
note_message tables; MemoryStore mirrors them for tests). bridge.mjs
is the small CLI client (send / inbox / ack; the caller's token comes
from the vault by name and is never printed). The README documents
the addressing model and the privacy properties.

Refs #13895 (bridge: class/name notes, public wake signal, hook).
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 25 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3cc1fef4-e231-4da0-b158-e39f87990407
Commits

Reviewing files that changed from the base of the PR and between 6848031 and 3b480fb.

Files selected for processing: 9

  • pkgs/message-bridge/worker/README.md
  • pkgs/message-bridge/worker/bridge.mjs
  • pkgs/message-bridge/worker/package.nix
  • pkgs/message-bridge/worker/src/index.js
  • pkgs/message-bridge/worker/src/messages.js
  • pkgs/message-bridge/worker/src/notes.js
  • pkgs/message-bridge/worker/src/routes.js
  • pkgs/message-bridge/worker/test/bridge.test.mjs
  • pkgs/message-bridge/worker/test/notes.test.mjs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 merged commit 17ff8a9 into main Nov 24, 2026
2 checks passed
@dezren39
dezren39 deleted the bridge/13895-notes-clean branch November 24, 2026 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant